<?php
	include '../dbc.php';
?>
<script>
function same(){
	if(document.getElementById("btg_pw1").value !== document.getElementById("btg_pw2").value){
		alert("Inconsistent password!");
		document.getElementById("btg_pw1").innerHTML = "";
		document.getElementById("btg_pw2").innerHTML = "";
		return false;	
	}else{
		return true;
	}
}
</script>
<div style="padding-left:300px">
<table>
<form action='resetpw.php' method='post'>
<tr>
	<td>Email</td>
    <td><input type='text' name='btg_email' value=''></td>
</tr>
<tr>
	<td>Password</td>
    <td><input type='password' id='btg_pw1' name='btg_pw1' value=''></td>
</tr>
<tr>
	<td>Re-enter Password</td>
    <td><input type='password' id='btg_pw2' name='btg_pw2' value=''></td>
</tr>
<tr>
	<td></td>
	<td><input type='submit' name='reset' value='Reset' onclick="return same()"></td>
</tr>
</form>
</table>
</div>